package com.jdrx.sw.sewage.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.jdrx.sw.sewage.beans.dto.base.PageDTO;
import com.jdrx.sw.sewage.service.base.BaseServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CameraServiceImpl extends BaseServiceImpl {

    public static final Logger logger = LoggerFactory.getLogger(CameraServiceImpl.class);
    @Autowired
    private HKServiceImpl hkServiceImpl;

    public JSONObject getCameraListByPage(PageDTO pageDTO, String tenantId) throws Exception {
        return hkServiceImpl.getCameraListByPage(pageDTO.getPageNum(), pageDTO.getPageSize(), tenantId);
    }

    public JSONArray getStreamUrl(String deviceSerial, Integer channelNo, String tenantId) throws Exception {
        return hkServiceImpl.getStreamUrl(deviceSerial, channelNo, tenantId);
    }
}
